package raspberry_pi_app;

import java.util.HashMap;

import android.content.res.AssetManager;
import android.graphics.Typeface;

public class ClassFonts {
	HashMap<String, Typeface> map;
	private ClassUberLogger logger;
	ClassFonts(AssetManager assets){
		
		logger = new ClassUberLogger("ClassFonts");
		map = new HashMap<String, Typeface>();
		
		map.put("italic", Typeface.createFromAsset(assets,"fonts/Neutraface2Text-BookItalic.otf"));
		map.put("bold", Typeface.createFromAsset(assets,"fonts/Neutraface2Text-Bold.otf"));
		map.put("book", Typeface.createFromAsset(assets,"fonts/Neutraface2Text-Book.otf"));
		map.put("title", Typeface.createFromAsset(assets,"fonts/Neutraface2Text-Demi.otf"));
		map.put("demi_italic", Typeface.createFromAsset(assets,"fonts/Neutraface2Text-DemiItalic.otf"));
		map.put("cond_medium", Typeface.createFromAsset(assets,"fonts/DINOT-CondMedium.otf"));
		map.put("medium", Typeface.createFromAsset(assets,"fonts/DINOT-Medium.otf"));
		map.put("medium_italic", Typeface.createFromAsset(assets,"fonts/DINOT-MediumItalic.otf"));
		map.put("cond_bold", Typeface.createFromAsset(assets,"fonts/DINOT-CondBold.otf"));
		map.put("cond_light", Typeface.createFromAsset(assets,"fonts/DINOT-CondLight.otf"));
		map.put("regular", Typeface.createFromAsset(assets,"fonts/DINOT-Regular.otf"));
		
	}
	public Typeface get_font(String font){
		logger.info("Returning font: " + font);
		return map.get(font);
	}
	
}
